/*
** main.c for philosophes in /home/cedric/work/cunix/philo/srcs
** 
** Made by Cedric
** Login   <cedric@epitech.net>
** 
** Started on  Wed May  4 15:57:01 2011 Cedric
** Last update Wed May  4 17:55:34 2011 Cedric
*/

#include <pthread.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include "philo.h"
#include "init.h"
#include "destroy.h"
#include "loop.h"
#include "actions.h"
#include "xpthreads.h"

int		main(void)
{
  t_philo	philo;

  init(&philo);
  xpthread_mutex_init(&lock, NULL);
  loop(&philo);
  destroy(philo.next);
  return (0);
}
